package com.mo.gitflow.controller;

import com.mo.gitflow.common.ReturnDto;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @类描述: 开始新功能开发
 * @Author 祝珠红
 * @date: 2019-01-17 13:38
 * @Version: 1.0
 **/
@RestController
public class GitFlowController {

    @RequestMapping(value = "/gitFlow", method = RequestMethod.POST)
    public ResponseEntity<ReturnDto> gitFlow(HttpServletRequest request) {
        ReturnDto returnDto = new ReturnDto("0000", "successful", null);
        return new ResponseEntity<>(returnDto, HttpStatus.OK);
    }

    /**  
     * @param request  
     * @功能描述: new_feature中的第二个接口
     * @Author: 祝珠红
     * @date: 2019/1/17 13:53
     * @Return: org.springframework.http.ResponseEntity<com.mo.gitflow.common.ReturnDto>
     * @Version: 1.0
     */
    @RequestMapping(value = "/secend-gitFlow", method = RequestMethod.POST)
    public ResponseEntity<ReturnDto> secendGitFlow(HttpServletRequest request) {
        ReturnDto returnDto = new ReturnDto("0000", "secendGitFlow Successful", null);
        return new ResponseEntity<>(returnDto, HttpStatus.OK);
    }
}
